package rladidxo.basic;

import java.util.Scanner;

public class J03_369 {

	public static void main(String[] args) {
		Scanner sc = null;
		Scanner scanner = new Scanner(System.in);
		System.out.print("1~99 사이의 정수를 입력하시오>>");
		String baksu = "박수 짝!!";
		String baksu2 = "박수 짝짝!!";
		String gogo = ">>";
		int c0=0;
		while(c0==0){
		int a = scanner.nextInt();
		int b,c;
		
		b=a/10;
		c=a-(b*10);
		
		if(a<=10){
			if(a%3==0){System.out.println(baksu);}
			else{System.out.println(a+gogo);}
		}
		else{
		if(b%3==0){
			if(c%3==0){
				System.out.println(baksu2);
			}
			else{System.out.println(baksu);}
		}
		else if(c%3==0){System.out.println(baksu);
			
		}
		else{System.out.println(a+gogo);}
		
		}
		
	}
	}
}
